package cn.zh.planmanager.infrastructure.repository;

import cn.zh.planmanager.domain.plan.repository.PlanRepository;
import cn.zh.planmanager.infrastructure.entity.PlanEntity;
import cn.zh.planmanager.infrastructure.mapper.PlanMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @author zh
 */
@Repository
@RequiredArgsConstructor
public class PlanRepositoryImpl implements PlanRepository {

    private final PlanMapper planMapper;

    @Override
    public PlanEntity findById(Long id) {
        return planMapper.selectById(id);
    }
}
